package cn.jbolt.ec.log;

import cn.jbolt._admin.permission.CheckPermission;
import cn.jbolt._admin.permission.PermissionKey;
import cn.jbolt.base.JBoltBaseController;
import cn.jbolt.common.model.BecRetailerStockChange;
import com.jfinal.aop.Inject;
import com.jfinal.plugin.activerecord.Page;

@CheckPermission(PermissionKey.LOG_ADMIN)
public class StockLogAuthController extends JBoltBaseController {

         @Inject
        StockLogService stockLogService;

        @CheckPermission(PermissionKey.LOG_STOCK_INDEX)
        public void index(){
           Page<BecRetailerStockChange> page= stockLogService.paginate_stock_Log(getPageNumber(),getPageSize(),getKeywords(),getInt("changeTime"));
           keepPara();
            set("pageData",page);
            render("index.html");
        }


}
